package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.Exercise;
import cn.topevery.garden.entity.query.ExerciseQuery;
import cn.topevery.garden.entity.vo.ExerciseVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

/**
 * 活动
 *
 * @author code-generate
 * @date 2022-01-07
 */
public interface ExerciseDao extends BaseDao<Exercise> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<ExerciseVO> listPage(ExerciseQuery query);

    Exercise getEntityByColumn(String key,String value);

    DataPager<Exercise> getPage(ExerciseQuery query);

    void exerciseCommit(Exercise exercise, Integer userId);

    void exerciseDelete(Integer id, Integer userId);

    Exercise getExerciseById(Integer id);

    void changeStatus(Integer id, Integer status, Integer userId);

}
